/**
 * 
 */
package com.shine.icis.dao;

import java.util.List;

import com.shine.cotrun.sql.QueryParameters;
import com.shine.cotrun.web.comm.ListPage;
import com.shine.icis.dao.IBaseHibernateDAO;
import com.shine.icis.dto.ReturnMsg;
import com.shine.icis.hbean.StockCheckProcStatus;
import com.shine.icis.hbean.StockChk;
import com.shine.icis.hbean.StockChkSurv;
import com.shine.icis.dto.ReturnMsg;

/**
 * @author zsy
 *
 */
public interface IStockCheckDAO extends IBaseHibernateDAO {
	/**
	 * 交收详细
	 * @param busiDate
	 * @return
	 */
	public StockCheckProcStatus findProcStatus(int procID,int queryDate);
	public int findPreviousBusiDate(int date);
	public int findPreviousDate(int date);
	public ReturnMsg callCollectProc(String proSql,  int endDate,String exchangeType,String srcFlag);
	public ReturnMsg callCheckProc(String proSql, int busiDate,String exchangeType);
	public ReturnMsg callBackupProc(String proSql, int busiDate);
	public ListPage<StockChk> findListPage(QueryParameters qp);
	public ListPage<StockChkSurv> findSurvListPage(QueryParameters qp);
	public StockChkSurv findById(long id);
	public void modifyStockSurv(long id,int queryDate); 
	public void save(StockChkSurv surv);
	public void modifyStockSurvNote(StockChkSurv surv, StockChkSurv oldSurv);
	public StockChk findStockChkById(long id);
	public void modifyNote(long id, String note);
}
